package Zuoye;

import java.util.Scanner;

public class Linaix4 {
    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        System.out.print("您想要几行数字？");
        int count=input.nextInt();
        for (int i = 0; i <= count; i++) {
            for (int k = 1; k <= count-i ; k++) {
                System.out.print(" ");
            }
            for (int j = 0; j <= (2*i)-2; j++) {
                System.out.print(i);
            }
            System.out.println();
        }
        //使用双重循环根据用户输入的数字输出
    }
}
